import { BaseItem } from "../common/BaseItem";
import { ItemData } from "../../resource/info/ItemData";
import { FilterConst } from "../../../component/gconst/FilterConst";
//class BlessPropCellrenderer
    
    export  class BlessPropCellrenderer extends BaseItem
    {
        constructor()
        {
            super();
            this.isDragAble = false;
            this.isDropAble = false;
            this.isShowLock = true;
            return;
        }

        public /* override */ set data(arg1: Object)
        {
            super.data = arg1;
            if (arg1 && arg1 is ItemData) 
            {
                itemData = arg1 as ItemData;
            }
            this.setSize(32, 32);
            _bitmap.x = 1;
            _bitmap.y = 1;
            this.drawNow();
            return;
        }

        public /* override */ set selected(arg1: Boolean)
        {
            super.selected = arg1;
            if (arg1) 
            {
                this.filters = [FilterConst.itemChooseFilter];
            }
            else 
            {
                this.filters = [];
            }
            this.setSize(32, 32);
            this.drawNow();
            return;
        }
    }
